<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<input v-model="name"/><br/>
			{{name}}
			{{age}}
			{{hobbies}}
			{{name}}
		</div>
		
		<div id="app2"></div>
	</body>
	
	<script>
	
		var app = new Vue({
			el:'#app',
			data:{
				name:'张三',
				age:20,
				hobbies: '吃'
			}
		});
		
		var app2 = new Vue({
			el:'#app2'
		});
		
		
		var name = app.name;
		console.log(name);
	</script>
</html>
